#ifndef PAGE4_WIDGET_H
#define PAGE4_WIDGET_H


#include <QWidget>
#include <stdio.h>
#include <string.h>
#include <QDebug>
#include "user/welcomewidget.h"
#include "ui_welcomewidget.h"
#include "page4_widget/reg_dialog.h"
#include "modbus_master.h"

class WelcomeWidget;


class Page4_Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Page4_Widget(WelcomeWidget *widget);
    ~Page4_Widget();

signals:
    void signal_connect_master(QString port_name,int baud);
    void signal_disconnect_master();

private slots:

    void on_pb_start_poll_clicked();
    void on_pb_clear_rx_clicked();

    void slot_display_slave_info(QString str_display);

private:

    WelcomeWidget *welcomewidget;
    Ui::WelcomeWidget *welcome_ui;

    Modbus_Master *mb_master = nullptr;
};

#endif


